package br.com.daniele.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

@Entity
public class Emit {

	private long id;
	private String CNPJ;
	private String xNome;
	private String xFant;
	private Endereco enderEmit;
	private String IE;
	private String CRT;
	private String IM;
	private String CNAE;

	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public String getCNPJ() {
		return CNPJ;
	}

	public String getxNome() {
		return xNome;
	}

	public String getxFant() {
		return xFant;
	}

	@OneToOne(fetch = FetchType.EAGER)
	public Endereco getEnderecoEmit() {
		return enderEmit;
	}

	public String getIE() {
		return IE;
	}

	public String getCRT() {
		return CRT;
	}

	public void setCNPJ(String cNPJ) {
		CNPJ = cNPJ;
	}

	public void setxNome(String xNome) {
		this.xNome = xNome;
	}

	public void setxFant(String xFant) {
		this.xFant = xFant;
	}

	public void setEnderecoEmit(Endereco enderecoEmit) {
		this.enderEmit = enderecoEmit;
	}

	public void setIE(String iE) {
		IE = iE;
	}

	public void setCRT(String cRT) {
		CRT = cRT;
	}

	@Column
	public String getIM() {
		return IM;
	}

	public void setIM(String iM) {
		IM = iM;
	}

	@Column
	public String getCNAE() {
		return CNAE;
	}

	public void setCNAE(String cNAE) {
		CNAE = cNAE;
	}
	
	
	
	

}
